#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char * args[])
{
    char * sourceFile = args[1];
    char * destineFile = args[2];
    cout<< "copying " << sourceFile << " to " << destineFile << endl;
    ifstream fin(sourceFile);
    ofstream fout(destineFile); 
    char c;
    while((c = fin.get())!= EOF)
    {
        cout<<c;
        fout<<c;
    }
    cout<<"OK!"<<endl;
    fin.close();
    fout.close();
}